Phage-based assays